UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The sshd server must bind the X11 forwarding server to the loopback address.


Overview

Finding ID Version Rule ID IA Controls Severity
V-233300 SOL-11.1-040331 SV-233300r603280_rule Medium
Description
As enabling X11 Forwarding on the host can permit a malicious user to secretly open another X11 connection to another remote client during the session and perform unobtrusive activities such as keystroke monitoring, if the X11 services are not required for the system's intended function, they should be disabled or restricted as appropriate to the user's needs. By default, sshd binds the forwarding server to the loopback address and sets the hostname part of the DISPLAY environment variable to “localhost”. This prevents remote hosts from connecting to the proxy display.
STIG Date
Solaris 11 SPARC Security Technical Implementation Guide 2024-02-02

Details

Check Text ( C-36495r622212_chk )
Determine if the X11 forwarding server is bound to the loopback address.

# grep "^X11UseLocalhost" /etc/ssh/sshd_config

If the output of this command is not:

X11UseLocalhost yes

this is a finding.
Fix Text (F-36459r622213_fix)
The root role is required.

Modify the sshd_config file.

# vi /etc/ssh/sshd_config

Locate the line containing:

X11UseLocalhost

Change it to:

X11UseLocalhost yes

Restart the SSH service.

# svcadm restart svc:/network/ssh